package com.ysstech.system.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ysstech.common.entity.Menu;
import com.ysstech.common.entity.TreeNode;
import com.ysstech.common.entity.User;
/**
 * <p>
 * 菜单服务类
 * </p>
 *
 * @author lishuangliang
 * @since 2020-09-11
 */
public interface MenuService extends IService<Menu> {
    /**
     * 查询用户的菜单树
     * @param user
     * @return
     * @throws Exception
     */
    public List<TreeNode> queryUserMenu(User user) throws Exception;



    /**
     * 加载菜单树
     *
     * @param region 是否包含菜单
     * @return
     * @throws Exception
     */
    public List<TreeNode> queryAllMenu(boolean region) throws Exception;


    /**
     * 删除菜单，包含下级菜单和下级菜单按钮
     *
     * @param menuId
     * @return
     * @throws Exception
     */
    public void deleteMenu(String menuId) throws Exception;
}
